#pragma once
#include "prio_assign.h"
namespace fs = std::filesystem;
class TPA: public PriorityAssignAlgorithm {
public:
    TPA(flow* flows): PriorityAssignAlgorithm(flows) {}
    ~TPA() = default;
	void run() override;
	void debug_flows() override;
    void record_flows(string path);
private:
    void assign_flow(int id, int &priority, bool is_scheduled = true);
    flow temp[FLOW_MAX_NUM];
};